import turtle

# 设置画布和画笔
screen = turtle.Screen()
screen.title("绘制数字7")
pen = turtle.Turtle()
pen.speed(3)  # 设置绘制速度为中等
pen.pensize(10)  # 设置画笔粗细
pen.color("blue")  # 设置画笔颜色

# 绘制数字7
pen.penup()
pen.goto(-50, 100)  # 起点位置
pen.pendown()

# 画顶部的横线
pen.goto(50, 100)

# 画斜向下的线
pen.goto(-50, -100)

# 隐藏画笔箭头
pen.hideturtle()

# 点击窗口关闭
screen.exitonclick()